package com.wtzz.police.base.bean.req;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.wtzz.police.base.bean.dto.UserDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import javax.validation.constraints.NotBlank;

/**
 * 用户请求
 */
@Data
@EqualsAndHashCode(callSuper = true)
@NoArgsConstructor
public class UserAddDto extends UserDto {

    @ApiModelProperty(value = "密码, 仅限注册传入有效(MD5加密后的值)", required = true)
    @NotBlank(message = "密码不能为空")
    @JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
    private String password;
}
